package com.zb.article.service.Impl;


import com.zb.article.mapper.AuthorMapper;
import com.zb.article.service.AuthorService;
import com.zb.model.pojo.article.ApAuthor;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;


@Service
public class AuthorServiceImpl implements AuthorService {

    @Autowired
    private AuthorMapper authorMapper;
    @Override
    public ApAuthor findByUserId(Integer userId) {
        return authorMapper.findByUserId(userId);
    }

    @Override
    public Integer save(ApAuthor apAuthor) {
        return authorMapper.save(apAuthor);
    }
}
